package com.cxs.tetrisdemo.util;

public class Utils {

    public static char[][] getArray(String str) {
        char[][] arr = new char[4][4];
        int len = 0;
        while ((len = 16 - str.length()) > 0) {
            str = "0" + str;
        }
        for (int i = 0; i < 4; i++) {
            arr[i] = str.substring(i * 4, (i+1) * 4).toCharArray();
        }
        return arr;
    }
}
